import React from 'react';
import { HR_REORG_LIST, HrMoudle } from '../Hr'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { fetchProfileTemplateFields, fetchProfileTemplates } from '../../../actions/system.action'
import { fetchDocuments, resetOnboardingTemplate } from '../../../actions/onboarding.hr.action'
import * as reorgActions from '../../../actions/reorg.action'

import { fetchUserProfile, fetchUserCoreProfile, resetUser, fetchReportLineInfo } from '../../../actions/user.action'
import { fetchTeamData, resetTeam } from '../../../actions/team.action'
import { fetchAtList, clearAtList } from '../../../actions/home.action'

export default connect(null, dispatch => ({actions: bindActionCreators({ fetchProfileTemplates, fetchDocuments, resetOnboardingTemplate, ...reorgActions, fetchUserCoreProfile, fetchUserProfile, resetUser, fetchAtList, clearAtList, fetchTeamData, resetTeam, fetchProfileTemplateFields, fetchReportLineInfo }, dispatch)}))(HrMoudle(HR_REORG_LIST));
